package com.example.mediamoudle.scrollview;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;
import org.jetbrains.annotations.NotNull;

public class MyRecyclerView extends RecyclerView {
    public MyRecyclerView(@NonNull @NotNull Context context) {
      this(context,null);
    }

    public MyRecyclerView(@NonNull @NotNull Context context, @Nullable @org.jetbrains.annotations.Nullable AttributeSet attrs) {
        this(context,attrs,0);
    }

    public MyRecyclerView(@NonNull @NotNull Context context, @Nullable @org.jetbrains.annotations.Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public boolean canScrollHorizontally(int direction) {
        return  false;
    }

    @Override
    public boolean canScrollVertically(int direction) {
        return  false;
    }

    @Override
    public boolean onTouchEvent(MotionEvent e) {
        return  false;
    }
}
